div

infix operator fun div(other: Int): Int
infix operator fun div(other: PositiveInt): NegativeInt
infix operator fun div(other: NegativeInt): PositiveInt

Divides this value by the other value, truncating the result to an integer that is closer to 0. Throws an ArithmeticException if the other value equals 0.


infix operator fun div(other: NonZeroInt): Int
infix operator fun div(other: StrictlyPositiveInt): NegativeInt
infix operator fun div(other: StrictlyNegativeInt): PositiveInt

Divides this value by the other value, truncating the result to an integer that is closer to 0.